home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / radiance / nextrad.lha / NeXtRad / hemicube.h < prev    next >
Encoding:
Text File  |  1993-02-22  |  943 b   |  32 lines

  1. /* hemicube.h */
  2. /* written by Jason R. Wilson    2/21/93 */
  3.  
  4. #import "datastruct.h"
  5.  
  6. /*----------------------------------------------------------------------*/
  7.  
  8. /* this type provides the information needed at each hemipixel */
  9. typedef struct hemipixel 
  10. {
  11.    double depth; /* the depth of the polygon that projected there */
  12.    double deltaFF; /* the delta form-factor for the pixel (precomputed) */
  13.    int ID; /* the ID of the patch that projects to this pixel */
  14. }
  15. HemiPixel;
  16.  
  17. /*----------------------------------------------------------------------*/
  18.  
  19. void HemiRenderObjects
  20.    (ObjectCell* ObjectHead,int Case,int winWidth,int winHeight,
  21.     Window ViewWindow);
  22. /* project polys onto viewwindow hemi-style */
  23.  
  24. void ComputeDeltas ();
  25. /* computes the delta form-factors */
  26.  
  27. void InitHemiCube ();
  28. /* init. the z-buffer and the ID of the hemi-cube */
  29.  
  30. void ProjectPatch (PolygonCell *Poly,double *Row);
  31. /* find Row of form-factors for poly */
  32.